import 'package:get/get.dart';
import 'package:getx_tutorial/app/data/providers/news_provider.dart';
import 'package:getx_tutorial/app/modules/home/news_controller.dart';
import 'package:getx_tutorial/app/modules/home/news_repository.dart';

class NewsBinding implements Bindings {
@override
  void dependencies() {
    print('Detail--------6666666666666');
    Get.lazyPut<INewsProvider>(() => NewsProvider());
    Get.lazyPut<INewsRepository>(() => NewsRepository(provider: Get.find()));
    Get.lazyPut(() => NewsController(repository: Get.find()));
  }
}